package com.more.offer.designpatterns.abstractfactory;

/**
 * @author pinoc
 * @date 2021/10/22
 * @description
 */
public class TestMain {
	public static void main(String[] args) {
		AbstractFactory oumeiFactory = new OumeiFactory();
		chair chair = oumeiFactory.createChair();
		chair.hasLags();

		sofa oumeiFactorySofa = oumeiFactory.createSofa();
		oumeiFactorySofa.canSit();

		AbstractFactory japanFactory = new JapanFactory();
		chair chair1 =  japanFactory.createChair();
		chair1.hasLags();
		sofa japanSofa = japanFactory.createSofa();
		japanSofa.canSit();
	}
}
